package com.example.design.adapter;

public class OperationAdapter implements ScoreOperation {
	QuickSort quickSort;
	BinarySearch binarySearch;
	
	public OperationAdapter() {
		quickSort = new QuickSort();
		binarySearch = new BinarySearch();
	}
	
	public int[] sort(int[] array){
		return quickSort.quickSort(array);
		
	}
	public int search(int array[], int key){
		return binarySearch.binarySearch(array, key);
	}
}
